//
//  STLSliderAndButtons.h
//  SoulMusic
//
//  Created by DJtd on 16/4/5.
//  Copyright © 2016年 DJtd. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "STLAvPlayer.h"
#import "STL.h"
#import "HomePageBaseModel.h"
#import "ChannelPage_Model.h"

//全屏按钮协议   跳转必须实现
/************************************************************/
@protocol bigAction <NSObject>

- (void)bigOrSmall;

@end
/************************************************************/

@interface STLSliderAndButtons : UIView

/************************************************************/
@property (nonatomic, strong) STLAvPlayer *avPlayer;
@property (nonatomic, strong) HomePageBaseModel *homeModel;
@property (nonatomic, strong) ChannelPage_Model *channelModel;
@property (nonatomic, strong) NSTimer *timer;
@property (nonatomic, strong) NSTimer *timerHidden;
/************************************************************/



/************************************************************/
//必须实现的代理方法
@property (nonatomic, assign) id<bigAction> bigDelegate;

//创建播放页的方法
- (instancetype)initWithFrame:(CGRect)frame withIndextPathNUM:(NSInteger)NUM withType_OneIsYuedan_TwoIsMV:(NSInteger)type withNSMutableArray:(NSMutableArray *)MVArray;
/************************************************************/



//必须实现的方法
/************************************************************/
#if 0
//大屏
- (void)bigOrSmall {
    BigMVViewController *bigVC = [[BigMVViewController alloc] init];
    
    //传入需求的model
    bigVC.ymvModel = self.yMvModel;
    
    [self presentViewController:bigVC animated:YES completion:^{
    }];
}
#endif
#if 0
//通知。改变当前播放的mv的字体颜色
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(cellColor:) name:@"gg" object:nil];

- (void)cellColor:(NSNotification *)sender {
    NSNumber *num = sender.object;
    self.cellColor = num.integerValue;
    [self.listTableView reloadData];
//  self.cellColor 为NSInterger 类型属性
}
//返回cell处
if (indexPath.row == self.cellColor) {
    cell.title.textColor = [UIColor redColor];
} else {
    cell.title.textColor = [UIColor whiteColor];
}
#endif
#if 0   
//在退出页面处将timer废除
[self.playView.timer invalidate];
self.playView.timer = nil;
[self.playView.timerHidden invalidate];
self.playView.timerHidden = nil;
#endif
/************************************************************/




@end






